]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
swipeTracker: Use AFTER trigger edge for TouchSwipeGesture
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 7 Jan 2021 19:00:52 +0000 (16:00 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 8 Jan 2021 17:27:02 +0000 (14:27 -0300)
Otherwise, we can get stray 'begin' signals from the touch gesture.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1562>

js/ui/swipeTracker.js

index fd13fd72527432de46facdb566614e02e1d4a92f..eb1960f61d995a82a57132532f7fa518ed92c709 100644 (file)
@@ -412,7 +412,7 @@ var SwipeTracker = GObject.registerClass({
         this.bind_property('orientation', this._touchpadGesture, 'orientation', 0);
 
         this._touchGesture = new TouchSwipeGesture(allowedModes, 4,
-            Clutter.GestureTriggerEdge.NONE);
+            Clutter.GestureTriggerEdge.AFTER);
         this._touchGesture.connect('begin', this._beginTouchSwipe.bind(this));
         this._touchGesture.connect('update', this._updateGesture.bind(this));
         this._touchGesture.connect('end', this._endGesture.bind(this));